package com.cy.system.service.impl;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cy.system.entity.Menu;
import com.cy.system.mapper.MenuMapper;
import com.cy.system.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService {

	@Resource
	MenuMapper menuMapper;
	@Override
	public int addMenu(Menu menu) {
		
		return menuMapper.addMenu(menu);
	}

	@Override
	public int deleteMenu(int menuId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateMenu(Menu menu) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Menu getMenuById(int menuId) {
		// TODO Auto-generated method stub
		return menuMapper.getMenuById(menuId);
	}

	@Override
	public int addMenuBatch(List<Menu> list) {
		// TODO Auto-generated method stub
		return menuMapper.addMenuBatch(list);
	}

	@Override
	public List<Menu> getAllMenu() {
		return menuMapper.getAllMenu();
	}

}
